﻿using Furion.Schedule;
using GWB.Application.Service.Startup;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GWB.Application.Job
{
    public class AddJob: IJob
        {
            private readonly IStartupServer _startupServer;
            public AddJob(IStartupServer startupServer)
            {
                _startupServer = startupServer;
            }

            public Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
            {
                Console.WriteLine("_____________________开始了_____________________" + DateTime.Now.ToString());
                _startupServer.Startup();
                return Task.CompletedTask;
        }
    }
}
